package com.heima.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.ChannelDto;
import com.heima.model.admin.pojos.AdChannel;
import com.heima.model.common.dtos.ResponseResult;

/**
 * @author Macrydy
 * @date 2020/11/5
 **/
public interface AdChannelService extends IService<AdChannel> {

    /**
     * 根据名称分页查询频道列表
     */
    public ResponseResult findByNameAndPage(ChannelDto channelDto);

    /**
     * 新增
     */
    public ResponseResult insert(AdChannel adChannel);

    /**
     * 修改
     */
    public ResponseResult update(AdChannel adChannel);

    /**
     * 删除
     */
    public ResponseResult deleteById(Integer id);
}
